import { expect } from 'chai';
import Calculator from '../src/calculator.js';

describe('Calculator', () => {
    let calculator;

    beforeEach(() => {
        calculator = new Calculator();
    });

    it('should add two numbers', () => {
        expect(calculator.add(2, 3)).to.equal(5);
    });

    it('should subtract two numbers', () => {
        expect(calculator.subtract(5, 3)).to.equal(2);
    });

    it('should multiply two numbers', () => {
        expect(calculator.multiply(4, 3)).to.equal(12);
    });
});